/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Race American Indian Tohono OOdham</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * <!-- begin-model-doc -->
 * specDomain: S15414 (C-0-T14914-S14915-S14916-S15414-cpt)
 * <!-- end-model-doc -->
 * @see org.hl7.v3.V3Package#getRaceAmericanIndianTohonoOOdham()
 * @model extendedMetaData="name='RaceAmericanIndianTohonoOOdham'"
 * @generated
 */
public enum RaceAmericanIndianTohonoOOdham implements Enumerator {
	/**
	 * The '<em><b>16535</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_16535_VALUE
	 * @generated
	 * @ordered
	 */
	_16535(0, "_16535", "1653-5"),

	/**
	 * The '<em><b>16543</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_16543_VALUE
	 * @generated
	 * @ordered
	 */
	_16543(1, "_16543", "1654-3"),

	/**
	 * The '<em><b>16550</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_16550_VALUE
	 * @generated
	 * @ordered
	 */
	_16550(2, "_16550", "1655-0"),

	/**
	 * The '<em><b>16568</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_16568_VALUE
	 * @generated
	 * @ordered
	 */
	_16568(3, "_16568", "1656-8"),

	/**
	 * The '<em><b>16576</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_16576_VALUE
	 * @generated
	 * @ordered
	 */
	_16576(4, "_16576", "1657-6");

	/**
	 * The '<em><b>16535</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>16535</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_16535
	 * @model literal="1653-5"
	 * @generated
	 * @ordered
	 */
	public static final int _16535_VALUE = 0;

	/**
	 * The '<em><b>16543</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>16543</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_16543
	 * @model literal="1654-3"
	 * @generated
	 * @ordered
	 */
	public static final int _16543_VALUE = 1;

	/**
	 * The '<em><b>16550</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>16550</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_16550
	 * @model literal="1655-0"
	 * @generated
	 * @ordered
	 */
	public static final int _16550_VALUE = 2;

	/**
	 * The '<em><b>16568</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>16568</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_16568
	 * @model literal="1656-8"
	 * @generated
	 * @ordered
	 */
	public static final int _16568_VALUE = 3;

	/**
	 * The '<em><b>16576</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>16576</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_16576
	 * @model literal="1657-6"
	 * @generated
	 * @ordered
	 */
	public static final int _16576_VALUE = 4;

	/**
	 * An array of all the '<em><b>Race American Indian Tohono OOdham</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final RaceAmericanIndianTohonoOOdham[] VALUES_ARRAY =
		new RaceAmericanIndianTohonoOOdham[] {
			_16535,
			_16543,
			_16550,
			_16568,
			_16576,
		};

	/**
	 * A public read-only list of all the '<em><b>Race American Indian Tohono OOdham</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<RaceAmericanIndianTohonoOOdham> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Race American Indian Tohono OOdham</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static RaceAmericanIndianTohonoOOdham get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			RaceAmericanIndianTohonoOOdham result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Race American Indian Tohono OOdham</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static RaceAmericanIndianTohonoOOdham getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			RaceAmericanIndianTohonoOOdham result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Race American Indian Tohono OOdham</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static RaceAmericanIndianTohonoOOdham get(int value) {
		switch (value) {
			case _16535_VALUE: return _16535;
			case _16543_VALUE: return _16543;
			case _16550_VALUE: return _16550;
			case _16568_VALUE: return _16568;
			case _16576_VALUE: return _16576;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private RaceAmericanIndianTohonoOOdham(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //RaceAmericanIndianTohonoOOdham
